<?php
$bAppCommon = new BAppCommon();
?>
<div class="tabbable tabs-left" style="margin-top: 15px;"> <!-- Only required for left/right tabs -->
    <ul class="nav nav-tabs" style="margin-bottom: 15px">
        <li class="active"><a href="#tab1" data-toggle="tab"><?php echo '微信菜单'; ?></a></li>
    </ul>
    <div class="tab-content">       
        <div class="tab-pane active" id="tab1" style="min-height: 380px;margin-right:2px;">    
            <p>
                <?php
                $wxControl3 = new BUIWXControl('userInfo');
                echo $wxControl3->getLink(
                        array('name' => '我的信息', 'id' => 'BAMemberShipDisplayUserInfo'), array(
                    'cooker' => 'BAMemberShip@showUserInfo',
                    'htmlOptions' => array(
                        'class' => 'btn', 'target' => '_blank'),
                    'theme' => 'mb_bootstrap'
                        )
                );
                $displayUserInfoUrl = $wxControl3->getLinkUrl(
                        array('name' => '我的信息', 'id' => 'BAMemberShipDisplayUserInfo'), array(
                            'cooker' => 'BAMemberShip@showUserInfo',
                            'theme' => 'mb_bootstrap'
                ));
                $bAppCommon->addOperationMenuToSpace(array('BAMemberShipDisplayUserInfo' => '我的信息' . '&%@' . $displayUserInfoUrl));
                ?>   
            </p>
            <p>
                <?php
                $wxControl4 = new BUIWXControl('membershipControl');
                echo $wxControl4->getLink(
                        array('name' => '管理会员', 'id' =>'BAMemberShipShowApproveMembership'), array(
                            'cooker' => 'BAMemberShip@showApproveMember',
                            'htmlOptions' => array(
                                'class' => 'btn', 'target' => '_blank'),
                            'theme' => 'mb_bootstrap'
                            )
                );
                $approveMemberInfoUrl = $wxControl4->getLinkUrl(
                        array('name' => '管理会员', 'id' => 'BAMemberShipShowApproveMembership'), array(
                            'cooker' => 'BAMemberShip@showApproveMember',
                            'theme' => 'mb_bootstrap'
                ));
                $bAppCommon->addOperationMenuToSpace(array('BAMemberShipShowApproveMembership' => '管理会员' . '&%@' . $approveMemberInfoUrl));
                ?>   
            </p>
            <p>
                <?php
                $wxControl5 = new BUIWXControl('userAuthenticate');
                echo $wxControl5->getLink(
                        array('name' => '用户认证', 'id' => 'BAMemberShipDisplayAuthenticate'), array(
                         'cooker' => 'BAMemberShip@showAuthenticate',
                        'htmlOptions' => array(
                            'class' => 'btn', 'target' => '_blank'),
                        'theme' => 'mb_bootstrap'
                            )
                );
                $userAuthenticateUrl = $wxControl5->getLinkUrl(
                        array('name' => '用户认证', 'id' => 'BAMemberShipDisplayAuthenticate'), array(
                            'cooker' => 'BAMemberShip@showAuthenticate',
                            'theme' => 'mb_bootstrap'
                ));
                $bAppCommon->addOperationMenuToSpace(array('BAMemberShipDisplayAuthenticate' => '用户认证' . '&%@' . $userAuthenticateUrl));
                ?>   
            </p>
            <p>
                <?php
                
                $wxControl6 = new BUIWXControl('sendWechatMessage');
                echo $wxControl5->getLink(
                        array('name' => '发送微信信息', 'id' => 'showSendWechatMessage'), array(
                    'htmlOptions' => array(
                        'class' => 'btn', 'target' => '_blank'),
                    'theme' => 'mb_bootstrap'
                        )
                );
                ?>   
            </p>
            <p>
                <?php
                 $wxControl7 = new BUIWXControl('authenticateHamshun');
                echo $wxControl7->getLink(
                        array('name' => '涵信会员认证', 'id' => 'BAMemberShipAuthenticateHamshun'), array(
                             'cooker' => 'BAMemberShip@showAuthenticateHamshun',
                            'htmlOptions' => array(
                                'class' => 'btn', 'target' => '_blank'),
                                'theme' => 'mb_bootstrap'
                                )
                    );
                $hamshunUserAuthenticateUrl = $wxControl7->getLinkUrl(
                        array('name' => '涵信会员认证', 'id' => 'BAMemberShipAuthenticateHamshun'), array(
                            'cooker' => 'BAMemberShip@showAuthenticateHamshun',
                    'theme' => 'mb_bootstrap'
                ));
                $bAppCommon->addOperationMenuToSpace(array('BAMemberShipAuthenticateHamshun' => '涵信会员认证' . '&%@' . $hamshunUserAuthenticateUrl));
                ?>   
            </p>
        </div>
    </div>
</div>



